package com.dycc.main_componet.adapter.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * 推荐列表实体：图文混合、多图、视频
 * Created by wxk on 2018/1/26 0026.
 */

public class Rc_News<T> implements MultiItemEntity {

    public static final int NEWS_MIX = 1;
    public static final int NEWS_ONLYPIC = 2;
    public static final int NEWS_VIDEO = 3;

    private T t;
    private int type;

    public Rc_News(T t, int type) {
        this.t = t;
        this.type = type;
    }

    public T getT() {
        return t;
    }

    public void setT(T t) {
        this.t = t;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
